package com.lanzchina.lanclass.controller;

import com.lanzchina.lanclass.domain.Result;
import com.lanzchina.lanclass.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/login")
    public Result login(String userAccount, String password, Integer schoolCode, String code, String validateCode) {
        return loginService.login(userAccount, password, schoolCode, code, validateCode);
    }
}
